// pages/demo16/demo16.js
Page({
  data: {
    list:[
      {
        id:0,
        name:"🍎",
        value:"apple"
      },
      {
        id:1,
        name:"🍇",
        value:"grape"
      },
      {
        id:2,
        name:"🍌",
        value:"bananer"
      }
    ],
    checkListName:[],
    checkListValue:[]
  },
  // 复选框的选中事件
  handleItemChangeName(e){
    console.log(e.detail.value);
    //获取复选框中的值
    const checkListName = e.detail.value;
    // 进行赋值
    this.setData({
      checkListName
    })
  },
  handleItemChangeValue(e){
    console.log(e.detail.value);
    //获取复选框中的值
    const checkListValue = e.detail.value;
    // 进行赋值
    this.setData({
      checkListValue
    })
  }
})